public abstract class Figure
{
    public Point point1;
    protected Figure()
    {
        this(new Point());
    }
    protected Figure(Point p)
    {
        this.point1=new Point(p);
    }
    protected Figure(Figure f)
    {
        this(f.point1);
    }

    public String toString()
    {
        return "Figure{"+
                "point1="+point1+
                '}';
    }
    public abstract Figure revolve(double angle);
    public abstract Figure revolve(Point p,double angle);
    public abstract Figure zoom(double percentage);
    public abstract Figure zoom(Point p,double percentage);
}
